/**
 * Class: LonLat
 * Contains lon/lat coordinates
 */
var LonLat = SMap.LonLat = SMap.Class(AbstractPoint, {
	fromArray: function(a) {
		this.lon = a[0];
		this.lat = a[1];
		return this;
	},
	toArray: function() {
		return [this.lon, this.lat];
	},
	toString: function() {
		return format("{lonlat: {lon}, {lat}}", this);
	},
    clone: function() {
    	return new LonLat(this.lon, this.lat);
    }
});
